<template>
  <div class="recommend">
    <div v-for="item in recommends" :key="item.link">
      <a :href="item.link">
        <img :src="item.image" alt />
        <div v-text="item.title"></div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommends: {
      type: Array,
      default() {
        return {};
      },
    },
  },
};
</script>

<style scoped lang="less">
.recommend {
  display: flex;
  justify-content: space-around;
  width: 100%;
  border-bottom: 8px solid #ddd;
  > div {
    text-align: center;
    padding: 15px 0 20px;
    img {
      width: 65px;
      margin-bottom: 8px;
    }
  }
}
</style>